package main

import "fmt"

func main() {
	num1 := 100
	fmt.Printf("num1类型为%T 值为%d 地址值为%v\n", num1, num1, &num1)
	num1 = 300
	fmt.Printf("num1类型为%T 值为%d 地址值为%v\n", num1, num1, &num1)

	num2 := new(int)
	fmt.Printf("num2类型为%T, num2的值为%v , num2的地址值为%v\nnum2指针指向的值=%v\n", num2, num2, &num2, *num2)
	*num2 = 200
	fmt.Printf("num2类型为%T, num2的值为%v , num2的地址值为%v\nnum2指针指向的值=%v\n", num2, num2, &num2, *num2)
}
